package fanxing.lianxi.deno06;

import java.util.Arrays;

public class MainTest02 {
    public static void main(String[] args) {
        String[] arr = {"aa","bb","cc"};

        int index = 0;
        //实现数组元素删除
        System.arraycopy(arr ,index + 1, arr, index,arr.length - index - 1);

        arr[arr.length - 1] = null;

        System.out.println(Arrays.toString(arr));
    }
}
